<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jstl/core">
  <script type="text/javascript" src="#{facesContext.externalContext.request.contextPath}/scripts/tiny_mce/tiny_mce.js"></script>
  <script type="text/javascript">
      tinyMCE.init({
          mode : "exact",
          elements : "#{for}",
          theme : "advanced",
          plugins : "spellchecker,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
          paste_auto_cleanup_on_paste : true,
          paste_use_dialog : false,
          content_css : "#{facesContext.externalContext.request.contextPath}/css/wysiwyg.css",
          theme_advanced_buttons1 : "bold, italic, underline, separator, justifyleft, justifycenter, justifyright, justifyfull, separator, bullist, numlist, outdent, indent, separator, forecolor, backcolor, separator, sub, sup, separator, charmap, visualchars, separator, code",
          theme_advanced_buttons2 : "spellchecker, separator, fullscreen, separator, print, separator, search, replace, separator, cut, copy, paste",
          theme_advanced_buttons3 : "",
          theme_advanced_toolbar_location : "top",
          theme_advanced_toolbar_align : "left",
          spellchecker_rpc_url : "/tiny_mce/plugins/spellchecker/rpc.php"
      });
  </script>
</ui:composition>